<?php if($operat_type == 'mobile'){//手机版?>
<h3 class="title">我的菜单</h3>
<table width="100%" border="1" cellspacing="0" cellpadding="0">
	<thead>
		<tr>
			<td height="33" width='90' align="center" bgcolor="#ececec">餐品</td>
			<td height="33" width='80' align="center" bgcolor="#ececec">数量</td>
			<td height="33" width='45' align="center" bgcolor="#ececec">价格</td>
			<td height="33" width='45' align="center" bgcolor="#ececec">操作</td>
		</tr>
	</thead>
	<tbody data-cart-tbody='product'>
		<?php if(!empty($cartRs['list'])){?>
			<?php foreach($cartRs['list'] as $key=>$cart){?>
			<?php $error = !empty($cart['Error'])?$cart['Error']:array();//错误消息?>
			<tr id="tr_<?php echo $cart['MealWeekly']['meal_weekly_id'];?>" data-mealweeklyid="<?php echo $cart['MealWeekly']['meal_weekly_id'];?>" data-error="<?php echo !empty($error['msg'])?$error['msg']:'';?>" data-maxstock="<?php echo !empty($error['stock'])?$error['stock']:'';?>">
				<td height="33" width='90' align="center"><?php echo $cart['MealWeekly']['title'];//餐品名称?></td>
				<td height="33" width='80' align="center">
					<a href="javascript:;" onclick="CART.minusProduct('<?php echo $cart['MealWeekly']['meal_weekly_id'];?>');">减</a>
						<input type='text' id="number_<?php echo $cart['MealWeekly']['meal_weekly_id'];?>" maxlength ="2" class="shuliang" 
								value='<?php echo $cart['MealWeekly']['number'];//数量?>' 
								onblur="CART.updateProduct('<?php echo $cart['MealWeekly']['meal_weekly_id'];?>');" />
					<a href="javascript:;" onclick="CART.plusProduct('<?php echo $cart['MealWeekly']['meal_weekly_id'];?>');">加</a>
				</td>
				<td height="33" width='45' align="center"><?php echo $cart['MealWeekly']['price'];//单价?></td>
				<td height="33" width='45' align="center">
					<a href="javascript:;" onclick="CART.deleteProduct('<?php echo $cart['MealWeekly']['meal_weekly_id'];?>');" class="quxiao">取消</a>
				</td>
			</tr>
			<?php }//end foreach?>
		<?php }else{?>
		<tr>
			<td height="30" align="center" colspan="4">暂无记录</td>
		</tr>
		<?php }//end if?>
	</tbody>
	<tfoot>
		<tr data-count="total">
			<td height="60" align="right" colspan="4">
				总金额: <span><?php echo !empty($cartRs['totalPrice'])?$cartRs['totalPrice']:0;?></span> 元<br>
				或 <em><?php echo !empty($cartRs['totalPrice'])?$cartRs['totalPrice']:0;?></em> 点积分兑换
			</td>
		</tr>
	</tfoot>
</table>
<?php }else{?>
<div id="cart" class="mycd">
	<h3 class="title">我的菜单</h3>
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="caidan">
		<thead>
			<tr>
				<td height="33" width='90' align="center" bgcolor="#ececec">餐品</td>
				<td height="33" width='80' align="center" bgcolor="#ececec">数量</td>
				<td height="33" width='45' align="center" bgcolor="#ececec">价格</td>
				<td height="33" width='45' align="center" bgcolor="#ececec">取消</td>
			</tr>
		</thead>
		<tbody>
			<?php if(!empty($cartRs['list'])){?>
			<?php foreach($cartRs['list'] as $key=>$cart){?>
			<?php $error = !empty($cart['Error'])?$cart['Error']:array();//错误消息?>
			<tr id="tr_<?php echo $cart['MealWeekly']['meal_weekly_id'];?>" data-mealweeklyid="<?php echo $cart['MealWeekly']['meal_weekly_id'];?>" data-error="<?php echo !empty($error['msg'])?$error['msg']:'';?>" data-maxstock="<?php echo !empty($error['stock'])?$error['stock']:'';?>">
				<td height="30" width='85' align="center">
					<span class='tdStyle tdTitle' title="<?php echo $cart['MealWeekly']['title'];//餐品名称?>">
						<?php echo $cart['MealWeekly']['title'];//餐品名称?>
					</span>
				</td>
				<td height="30" width='80' align="center">
					<p>
						<a href="javascript:;" onclick="CART.minusProduct('<?php echo $cart['MealWeekly']['meal_weekly_id'];?>');" class="jian"></a>
						<input type='text' id="number_<?php echo $cart['MealWeekly']['meal_weekly_id'];?>" maxlength ="2" class="shuliang" value='<?php echo $cart['MealWeekly']['number'];//数量?>' onblur="CART.updateProduct('<?php echo $cart['MealWeekly']['meal_weekly_id'];?>');" />
						<a href="javascript:;" onclick="CART.plusProduct('<?php echo $cart['MealWeekly']['meal_weekly_id'];?>');" class="jia"></a>
					</p>
				</td>
				<td height="30" width='45' align="center">
					<span class='tdStyle tdPrice'>
						<?php echo $cart['MealWeekly']['price'];//单价?>
					</span>
				</td>
				<td height="30" width='45' align="center">
					<span class='tdStyle tdDelete'>
						<a href="javascript:;" onclick="CART.deleteProduct('<?php echo $cart['MealWeekly']['meal_weekly_id'];?>');" class="quxiao"></a>
					</span>
				</td>
			</tr>
			<?php }//end foreach?>
			<?php }else{?>
				<tr>
					<td height="30" align="center" colspan="4">暂无记录</td>
				</tr>
			<?php }//end if?>
		</tbody>
		<tfoot>
			<tr>
				<td height="87" align="right" colspan="4">
					总金额: <span id="totalPrice"><?php echo !empty($cartRs['totalPrice'])?$cartRs['totalPrice']:0;?></span> 元<br>
					或 <em id="totalIntegral"><?php echo !empty($cartRs['totalPrice'])?$cartRs['totalPrice']:0;?></em> 点积分兑换
				</td>
			</tr>
		</tfoot>
	</table>
</div>
<script>
jQuery().ready(function(){
	CART.errorTip();
});
</script>
<?php }?>